<template>
	<view class="tui-userinfo-box">
		
		<tui-list-cell padding="0" :arrow="true" @click="href(1)">
			<view class="tui-list-cell tui-pr30">
				<view>登录密码</view>
				<view class="tui-content"></view>
			</view>
		</tui-list-cell>
		<tui-list-cell padding="0" :arrow="true" @click="href(2)">
			<view class="tui-list-cell">
				<view>支付密码</view>
				<view class="tui-content"></view>
			</view>
		</tui-list-cell>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userinfo:'',
			}
		},
		onShow() {
			this.tui.haslogin();
			if(this.tui.isLogin()){
				this.userinfo = this.tui.getUserInfoData();
			}
		},
		methods: {
			href(page) {
				let url = "";
				switch (page) {
					case 1:
						url = "../userInfo/setPassword"
						break;
					case 2:
						url = "../userInfo/setPayPassword"
						break;
				}
				uni.navigateTo({
					url: url
				})
			},
			

			
		}
	}
</script>

<style>
	.tui-userinfo-box {
		margin: 20rpx 0;
		color: #333;
	}

	.tui-list-cell {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 24rpx 60rpx 24rpx 30rpx;
		box-sizing: border-box;
		font-size: 30rpx;
	}

	.tui-pr30 {
		padding-right: 30rpx;
	}

	.tui-avatar {
		width: 100rpx;
		height: 100rpx;
		display: block;
		border-radius: 50rpx;
	}

	.tui-content {
		font-size: 26rpx;
		color: #666;
	}
</style>
